package com.ruoyi.mes.systembasic.mapper;

import java.util.List;

import com.ruoyi.mes.systembasic.domain.SmesProduceSequenceResult;
import com.ruoyi.mes.systembasic.domain.SmesSequenceProduce;

/**
 * 序列Mapper接口
 *
 * @author simpsense
 * @date 2020-12-10
 */
public interface SmesSequenceProduceMapper
{
    /**
     * 查询序列
     *
     * @param rowId 序列ID
     * @return 序列
     */
    public SmesSequenceProduce selectSmesSequenceProduceById(Long rowId);

    /**
     * 查询序列列表
     *
     * @param smesSequenceProduce 序列
     * @return 序列集合
     */
    public List<SmesSequenceProduce> selectSmesSequenceProduceList(SmesSequenceProduce smesSequenceProduce);

    /**
     * 新增序列
     *
     * @param smesSequenceProduce 序列
     * @return 结果
     */
    public int insertSmesSequenceProduce(SmesSequenceProduce smesSequenceProduce);

    /**
     * 修改序列
     *
     * @param smesSequenceProduce 序列
     * @return 结果
     */
    public int updateSmesSequenceProduce(SmesSequenceProduce smesSequenceProduce);

    /**
     * 删除序列
     *
     * @param rowId 序列ID
     * @return 结果
     */
    public int deleteSmesSequenceProduceById(Long rowId);

    /**
     * 批量删除序列
     *
     * @param rowIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteSmesSequenceProduceByIds(Long[] rowIds);
    public SmesProduceSequenceResult generateSequence(SmesSequenceProduce smesSequenceProduce);
}